# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=psautohint
pkgver=2.3.1
pkgrel=1
pkgdesc="standalone version of AFDKO's autohinter"
url="https://github.com/adobe-type-tools/psautohint"
arch="all !s390x" # ufo2ft
license="Apache-2.0"
depends="python3 py3-fonttools py3-lxml py3-statmake py3-ufo2ft py3-setuptools"
makedepends="py3-setuptools_scm python3-dev"
source="https://github.com/adobe-type-tools/psautohint/releases/download/v$pkgver/psautohint-$pkgver.zip"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="
0bf7daf38c8425b4f46eb836bd22d3da6c8a2d97811e91738ca8adae193e9204db4bcfda41947d42a3ad2d5ea9bf1b86ca5771585fb0689091ab082c83050cfe  psautohint-2.3.1.zip
"
